;; -*- coding: utf-8 -*-

(if (string= system-type 'windows-nt)
    (progn 
      ;; 将下面PS1设置加入到.bashrc中
      ;; export PS1="\e[0;36m\h:\w # \e[m"
      ;; export LANG=zh_CN
      ;; export PS1="[\\u@\\H \\W \\@]\\$"

      ;; | Color  | Code |
      ;; | Black  | 0;30 |
      ;; | Blue   | 0;34 |
      ;; | Green  | 0;32 |
      ;; | Cyan   | 0;36 |
      ;; | Red    | 0;31 |
      ;; | Purple | 0;35 |
      ;; | Brown  | 0;33 |
      ;; | Blue   | 0;34 |
      ;; | Green  | 0;32 |
      ;; | Cyan   | 0;36 |
      ;; | Red    | 0;31 |
      ;; | Purple | 0;35 |
      ;; | Brown  | 0;33 |

      ;; For the interactive shell
      (setq explicit-shell-file-name "d:/cygwin/bin/bash.exe")
      ;; For subprocesses invoked via the shell
      (setq shell-file-name "d:/cygwin/bin/bash.exe")))

(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on t)

(global-set-key [f4] 'shell)


(provide 'init-shell)
